package com.xuetang9.t9.xinhuaxia.beans;

import java.util.Date;
import javax.persistence.*;

@Table(name = "purchase")
public class Purchase {
    /**
     * 采购订单id
     */
    @Id
    @Column(name = "p_id")
    private Long pId;

    /**
     * 商品id
     */
    @Column(name = "p_goodsId")
    private Long pGoodsid;

    /**
     * 购买数量
     */
    @Column(name = "p_count")
    private Integer pCount;

    /**
     * 商品单价
     */
    @Column(name = "p_cost")
    private Double pCost;

    /**
     * 订单发起状态
     */
    @Column(name = "p_orderStatus")
    private String pOrderstatus;

    /**
     * 到货状态 (0到货 1未到货)
     */
    @Column(name = "p_arrivalStatus")
    private String pArrivalstatus;

    /**
     * 下单时间
     */
    @Column(name = "p_orderTime")
    private Date pOrdertime;

    /**
     * 预计到货时间
     */
    @Column(name = "p_expectTime")
    private Date pExpecttime;

    /**
     * 实际到货时间
     */
    @Column(name = "p_actualTime")
    private Date pActualtime;

    /**
     * 获取采购订单id
     *
     * @return p_id - 采购订单id
     */
    public Long getpId() {
        return pId;
    }

    /**
     * 设置采购订单id
     *
     * @param pId 采购订单id
     */
    public void setpId(Long pId) {
        this.pId = pId;
    }

    /**
     * 获取商品id
     *
     * @return p_goodsId - 商品id
     */
    public Long getpGoodsid() {
        return pGoodsid;
    }

    /**
     * 设置商品id
     *
     * @param pGoodsid 商品id
     */
    public void setpGoodsid(Long pGoodsid) {
        this.pGoodsid = pGoodsid;
    }

    /**
     * 获取购买数量
     *
     * @return p_count - 购买数量
     */
    public Integer getpCount() {
        return pCount;
    }

    /**
     * 设置购买数量
     *
     * @param pCount 购买数量
     */
    public void setpCount(Integer pCount) {
        this.pCount = pCount;
    }

    /**
     * 获取商品单价
     *
     * @return p_cost - 商品单价
     */
    public Double getpCost() {
        return pCost;
    }

    /**
     * 设置商品单价
     *
     * @param pCost 商品单价
     */
    public void setpCost(Double pCost) {
        this.pCost = pCost;
    }

    /**
     * 获取订单发起状态
     *
     * @return p_orderStatus - 订单发起状态
     */
    public String getpOrderstatus() {
        return pOrderstatus;
    }

    /**
     * 设置订单发起状态
     *
     * @param pOrderstatus 订单发起状态
     */
    public void setpOrderstatus(String pOrderstatus) {
        this.pOrderstatus = pOrderstatus;
    }

    /**
     * 获取到货状态 (0到货 1未到货)
     *
     * @return p_arrivalStatus - 到货状态 (0到货 1未到货)
     */
    public String getpArrivalstatus() {
        return pArrivalstatus;
    }

    /**
     * 设置到货状态 (0到货 1未到货)
     *
     * @param pArrivalstatus 到货状态 (0到货 1未到货)
     */
    public void setpArrivalstatus(String pArrivalstatus) {
        this.pArrivalstatus = pArrivalstatus;
    }

    /**
     * 获取下单时间
     *
     * @return p_orderTime - 下单时间
     */
    public Date getpOrdertime() {
        return pOrdertime;
    }

    /**
     * 设置下单时间
     *
     * @param pOrdertime 下单时间
     */
    public void setpOrdertime(Date pOrdertime) {
        this.pOrdertime = pOrdertime;
    }

    /**
     * 获取预计到货时间
     *
     * @return p_expectTime - 预计到货时间
     */
    public Date getpExpecttime() {
        return pExpecttime;
    }

    /**
     * 设置预计到货时间
     *
     * @param pExpecttime 预计到货时间
     */
    public void setpExpecttime(Date pExpecttime) {
        this.pExpecttime = pExpecttime;
    }

    /**
     * 获取实际到货时间
     *
     * @return p_actualTime - 实际到货时间
     */
    public Date getpActualtime() {
        return pActualtime;
    }

    /**
     * 设置实际到货时间
     *
     * @param pActualtime 实际到货时间
     */
    public void setpActualtime(Date pActualtime) {
        this.pActualtime = pActualtime;
    }
}